package com.lmk.sentinel;

import com.lmk.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

/*这是一个熔断降级类*/
public class FuseDowngradeUtil {


    public static User getUserByIdfallback(@PathVariable("id") Long id, Throwable  e){
        e.printStackTrace();
        return new User(-1L, "熔断服务降级触发！", "服务不可用，请稍后重试！");
    }

}